﻿<%@ Page Language="C#" MasterPageFile="~/master.master" AutoEventWireup="true" CodeFile="gallery.aspx.cs" Inherits="gallery" Title="Untitled Page" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
    <style type="text/css">
        .style8
        {
            width: 100%;
        }
        .style9
        {}
        .style12
        {
            width: 234px;
        }
        .style13
        {
            width: 324px;
        }
        .style14
        {
            width: 288px;
        }
        .style16
        {
            width: 275px;
        }
        .style17
        {
            width: 248px;
        }
        .style18
        {
            width: 284px;
        }
    </style>
    </asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">

    

    <table class="style8">
        <tr>
            <td class="style17">
                <asp:Label ID="Label1" runat="server" Text="Album"></asp:Label>
            </td>
            <td class="style16">
                <asp:Label ID="Label2" runat="server" Text="Description"></asp:Label>
            </td>
            <td class="style18">
                <asp:Label ID="Label3" runat="server" Text="Upload date"></asp:Label>
            </td>
            <td>
                <asp:Label ID="Label4" runat="server" Text="Upload ID"></asp:Label>
            </td>
        </tr>
        <tr>
            <td class="style9" colspan="4">
                <asp:DataList ID="DataList1" runat="server" DataKeyField="albumId" 
                    DataSourceID="SqlDataSource1">
                    <ItemTemplate>
                        <table class="style8">
                            <tr>
                                <td class="style12">
                                    <asp:HyperLink ID="HyperLink9" runat="server" 
                                        NavigateUrl='<%# Eval("albumId", "Load_news.aspx?albumId={0}") %>' 
                                        Text='<%# Eval("albumName") %>'></asp:HyperLink>
                                </td>
                                <td class="style14">
                                    <asp:Label ID="Label6" runat="server" Text='<%# Eval("albumDescription") %>'></asp:Label>
                                </td>
                                <td class="style13">
                                    <asp:Label ID="Label7" runat="server" Text='<%# Eval("createdDate") %>'></asp:Label>
                                </td>
                                <td>
                                    <asp:Label ID="Label8" runat="server" Text='<%# Eval("creatorId") %>'></asp:Label>
                                </td>
                            </tr>
                        </table>
                        <br />
                    </ItemTemplate>
                </asp:DataList>
                <asp:SqlDataSource ID="SqlDataSource1" runat="server" 
                    ConnectionString="<%$ ConnectionStrings:ConnectionString %>" 
                    SelectCommand="SELECT * FROM [tblAlbum]"></asp:SqlDataSource>
            </td>
        </tr>
    </table>

    

</asp:Content>

